<%@ page import="com.onlinevideo.entity.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <link rel="stylesheet" type="text/css" href="../static/fonts/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../static/css/public.css"/>
    <link rel="stylesheet" type="text/css" href="../static/css/newlist.css"/>
    <style type="text/css">
        .hov:hover {
            color: #ff3030 !important;
        }
    </style>
</head>
<div class="header">
    <div class="header">
        <div class="container">
            <div class="logo"><a href="../index.html"><img style="position: relative;top: -15px;left: 30px;width: 60px;height: 60px;"
                    src="../uploadFile/images/onlineVideo_logo.png"></a></div>
            <ul class="titlelist">
                <li><a class="hov" href="/">首页</a></li>
                <li><a class="hov" href="../gateway?action=mine">个人中心</a></li>
                <li><a class="hov" href="../gateway?action=search">搜索视频</a></li>
            </ul>
            <div class="dengru" style="margin-top: 18px">

                <%
                    HttpSession session1 = request.getSession();
                    User user = (User) session1.getAttribute("user");
                    if (user != null) {
                %>
                <div class="logo">
                    <a href="../gateway?action=mine">
                        <img  style="position: relative;top: -32px;left:15px;width: 60px;height: 60px;border-radius: 50%"  src="<%= user.getLogoUrl()%>">
                    </a>
                </div>
                    <div style="border: 0">
                        <a class="hov" href="../gateway?action=mine"><%=user.getNickname()%></a>
                    </div>
                <div style="border: 0"><a class="hov" href="../user.do?action=loginOut">退出登录</a></div>
                <%
                } else {
                %>
                    <div style=""><a class="hov" href="../gateway?action=login">登录</a></div>
                    <div style=""><a class="hov" href="../gateway?action=register">注册</a></div>
                <%
                    }
                %>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="../static/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../static/js/newlist.js"></script>
